<div class="grid_9">

<div class="inner-border">
<h6>Pending Enrollees</h6>
  <?php if(!empty($db_entries)):?>
    <table>
    <thead>
        <tr>
        	<th class="enrollee">Student Enrollees</th><th class="enrollee_course">Course</th><th class="enrollee_subjects">Subjects Enrolled</th><th></th>
    </tr></thead>

    <tbody class="tabular">
      <?php	foreach($db_entries as $db_entry): ?>
      		<?php $name = $db_entry->lastname.', '.$db_entry->firstname.' '.substr($db_entry->middlename, 0, 1);?>
            <tr>
                <td><?php echo substr($name, 0, 20).'...'; ?></td>
                <td><?php echo $db_entry->course_code; ?></td>
                <td><?php echo $db_entry->enrolled_subjects; ?></td>
                <td><a href="<?php echo site_url('admin/view_enrollee/'.$db_entry->id_no); ?>">View</a></td>
            </tr>
      <?php endforeach;?>
    </tbody>
	</table>
    <?php else: ?>
    <div class="notice">No pending students yet.</div>
    
   <?php endif; ?>
   
</div>
</div>